import {
    DesktopOutlined,
    ShakeOutlined,
    QuestionOutlined,
    CustomerServiceOutlined,
    FieldTimeOutlined,
    FundProjectionScreenOutlined,
    LockOutlined,
    LogoutOutlined,
    WechatOutlined,
    DotChartOutlined,
    UserOutlined
} from '@ant-design/icons'

import { ICONMapping } from '../Utils/IconMapping'

export const ThemeMapping = {}

export const consoleStyle = 'font-size:16px;font-weight: bold;padding: 2px 6px; background: #c4fcd3; color: #f759ab'

export const CommonUrl = 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Common/'
export const WebCommonUrl = 'https://image.ljkjkf.com/intellisiteSystem_TieKe/WebTemplate/'

export const ImageUrl = 'https://image.ljkjkf.com/intellisiteSystem_TieKe/jiantou/'

export const WeChatConfig = {
    appid: 'wxa3d0c46c8bfcef89',
    redirect_uri: 'https://common-redirect.ljkjkf.com',
}


// Todo 菜单字段映射
export const GetMenuFieldMapping = {
    AdministratorsMenu: 'Sys_Menu',
    AdministratorsAnnex: 'Sys_Attachment',
    DictionaryType: 'Sys_DictionaryType',
    Dictionary: 'Sys_Dictionary',

    Organization: 'Sys_Organization',
    OrganizationA02: 'Sys_Organization',
    OrganizationA03: 'Sys_Organization',
    OrganizationA04: 'Sys_Organization',
    Users: 'Sys_User',
    UsersA02: 'Sys_User',
    Role: 'Sys_Role',
    RoleDetails: 'Sys_GetRoleDetail',
    ProjectInfo: 'MA_ProjectInfo',
    CostMonthDetailInfo: 'MA_CostMonthDetailAcross',
    AnnexA01: 'Sys_AttachmentDetail',
    CostMonth: 'MA_CostMonthCompany',
    CostMonthA02: 'MA_CostMonthCompany',
    OLAP: 'MA_CostMonthDetailAcross',
    TwoPageRole: 'Sys_Role',
    TwoPageOrg: 'MA_ProjectInfo',
    CostMonthDetailInfoOLAP: 'MA_CostMonthDetailAcrossOLAP',
    CostMonthOLAP: 'MA_CostMonthCompanyOLAP',
    EnterpriseQualifications: 'EQ_EnterpriseQualifications',
    EnterpriseQualificationsA02: 'EQ_GetEnterpriseQualifications',
    PrebidProjectInfo: 'OP_PrebidProjectInfo',
    PrebidProjectInfoA02: 'OP_PrebidProjectInfo',
    TrackingProjectManagement: 'OP_TrackingProjectManagement',
    TrackingProjectManagementA02: 'OP_TrackingProjectManagement',
    ContractOrder: 'OP_ContractOrder',
    ContractOrderA02: 'OP_ContractOrder',
    PlanManagement: 'OP_PlanManagement',
    ProjectInfoOLAP: 'MA_GetProjectInfoOLAP',
    ContractOrderOLAP: 'OP_GetContractOrderOLAP',
    OrganizationNameOrderOLAP: 'OP_GetOrganizationNameOrderOLAP',
    PrebidProjectInfoOLAP: 'OP_GetPrebidProjectInfoOLAP',
    TrackingProjectManagementOLAP: 'OP_GetTrackingProjectManagementOLAP',
    CostMonthDetails: 'MA_GetCostMonthDetails',
    CostMonthDetailsA02: 'MA_GetCostMonthDetails',
    ProjectWarningDetails: 'OP_GetPrebidProjectWarningDetails',
    PrebidProjectInfoDetails: 'OP_GetPrebidProjectInfoDetails',
    TrackingProjectManagementDetails: 'OP_GetTrackingProjectManagementDetails',
    ContractOrderDetails: 'OP_GetContractOrderDetails',
    AuditTableList: 'MA_GetAuditTableList',
    MigrantWorkerSalaryManagement: 'MA_MigrantWorkerSalaryManagement',
    MigrantWorkerSalaryManagementOLAP: 'MA_MigrantWorkerSalaryManagementOLAP',
    MigrantWorkerSalaryManagementDetails: 'MA_MigrantWorkerSalaryManagementDetails',
    TrackingProjectWarningDetails: 'OP_GetTrackingProjectWarningDetails',
    TwoUserList: 'Sys_GetUserUuidByProjectUuid',
    FlowUser: 'Sys_GetUserListByOrganizationUuid',
    UserLogList: 'Sys_Logs',
    FlowTreeList: 'MA_GetUserListByFlowUuid',
    ApprovalProjectDetail: 'MA_GetApprovalProjectDetail',
    ProjectDetail: 'MA_GetProjectDetail',
    ApprovalDetail: 'MA_GetApprovalDetail',
    UnregisteredList: 'MA_GetUnregisteredList',
    OrganizationLock: 'Sys_Organization',
    UserListA02: 'Sys_GetUserUuidByRoleUuid'
}

export const UserAvatar = {
    AvatarA01: `${CommonUrl}images/Avatar/AvatarA01.webp`,
    AvatarA02: `${CommonUrl}images/Avatar/AvatarA02.webp`,
    AvatarA03: `${CommonUrl}images/Avatar/AvatarA03.webp`,
    AvatarA04: `${CommonUrl}images/Avatar/AvatarA04.webp`,
    AvatarA05: `${CommonUrl}images/Avatar/AvatarA05.webp`,
    AvatarA06: `${CommonUrl}images/Avatar/AvatarA06.webp`,
    AvatarA07: `${CommonUrl}images/Avatar/AvatarA07.webp`,
    AvatarA08: `${CommonUrl}images/Avatar/AvatarA08.webp`,
    AvatarA09: `${CommonUrl}images/Avatar/AvatarA09.webp`,
    AvatarA10: `${CommonUrl}images/Avatar/AvatarA10.webp`,
    AvatarA11: `${CommonUrl}images/Avatar/AvatarA11.webp`,
    AvatarA12: `${CommonUrl}images/Avatar/AvatarA12.webp`,
    AvatarA13: `${CommonUrl}images/Avatar/AvatarA13.webp`,
    AvatarA14: `${CommonUrl}images/Avatar/AvatarA14.webp`,
    AvatarA15: `${CommonUrl}images/Avatar/AvatarA15.webp`,
    AvatarA16: `${CommonUrl}images/Avatar/AvatarA16.webp`,
    AvatarA17: `${CommonUrl}images/Avatar/AvatarA17.webp`,
    AvatarA18: `${CommonUrl}images/Avatar/AvatarA18.webp`,
    AvatarA19: `${CommonUrl}images/Avatar/AvatarA19.webp`,
    AvatarA20: `${CommonUrl}images/Avatar/AvatarA20.webp`,
    AvatarA21: `${CommonUrl}images/Avatar/AvatarA21.webp`,
    AvatarA22: `${CommonUrl}images/Avatar/AvatarA22.webp`,
    AvatarA23: `${CommonUrl}images/Avatar/AvatarA23.webp`,
    AvatarA24: `${CommonUrl}images/Avatar/AvatarA24.webp`,
    AvatarA25: `${CommonUrl}images/Avatar/AvatarA25.webp`,
}
export const UserBackboard = {
    BackboardA01: `${CommonUrl}images/Backboard/BackboardA01.webp`,
    BackboardA02: `${CommonUrl}images/Backboard/BackboardA02.webp`,
    BackboardA03: `${CommonUrl}images/Backboard/BackboardA03.webp`,
    BackboardA04: `${CommonUrl}images/Backboard/BackboardA04.webp`,
    BackboardA05: `${CommonUrl}images/Backboard/BackboardA05.webp`,
    BackboardA06: `${CommonUrl}images/Backboard/BackboardA06.webp`,
    BackboardA07: `${CommonUrl}images/Backboard/BackboardA07.webp`,
    BackboardA08: `${CommonUrl}images/Backboard/BackboardA08.webp`,
    BackboardA09: `${CommonUrl}images/Backboard/BackboardA09.webp`,
    BackboardA10: `${CommonUrl}images/Backboard/BackboardA10.webp`,
    BackboardA11: `${CommonUrl}images/Backboard/BackboardA11.webp`,
    BackboardA12: `${CommonUrl}images/Backboard/BackboardA12.webp`,
    BackboardA13: `${CommonUrl}images/Backboard/BackboardA13.webp`,
    BackboardA14: `${CommonUrl}images/Backboard/BackboardA14.webp`,
    BackboardA15: `${CommonUrl}images/Backboard/BackboardA15.webp`,
    BackboardA16: `${CommonUrl}images/Backboard/BackboardA16.webp`,
    BackboardA17: `${CommonUrl}images/Backboard/BackboardA17.webp`,
    BackboardA18: `${CommonUrl}images/Backboard/BackboardA18.webp`,
    BackboardA19: `${CommonUrl}images/Backboard/BackboardA19.webp`,
    BackboardA20: `${CommonUrl}images/Backboard/BackboardA20.webp`,
    BackboardA21: `${CommonUrl}images/Backboard/BackboardA21.webp`,
    BackboardA22: `${CommonUrl}images/Backboard/BackboardA22.webp`,
    BackboardA23: `${CommonUrl}images/Backboard/BackboardA23.webp`,
    BackboardA24: `${CommonUrl}images/Backboard/BackboardA24.webp`,
}
export const ThemeBackImageList = {
    ThemeImageA01: `${CommonUrl}images/ThemeImage/ThemeImageA01.jpg`,
    ThemeImageA02: `${CommonUrl}images/ThemeImage/ThemeImageA02.jpg`,
    ThemeImageA03: `${CommonUrl}images/ThemeImage/ThemeImageA03.jpg`,
    ThemeImageA04: `${CommonUrl}images/ThemeImage/ThemeImageA04.jpg`,
    ThemeImageA05: `${CommonUrl}images/ThemeImage/ThemeImageA05.jpg`,
    ThemeImageA06: `${CommonUrl}images/ThemeImage/ThemeImageA06.jpg`,
    ThemeImageA07: `${CommonUrl}images/ThemeImage/ThemeImageA07.png`,
}

export const FontFamilyMapping = [
    { value: 'PingFang', label: '微软平方' },
    { value: 'Pixel', label: '机械数字' },
    { value: '微软雅黑', label: '微软雅黑' },
    { value: 'ShuHeiTi', label: '书黑体' },
    { value: 'DIN', label: '数字字体' },
    { value: 'BiaoTiHei', label: '斜黑体' },
    { value: '宋体', label: '宋体' },
]
export const FontWeightMapping = [
    { value: 600, label: '加粗' },
    { value: 400, label: '不加' },
]
export const FontStyleMapping = [
    { value: 'normal', label: '正常' },
    { value: 'italic', label: '倾斜' },
    { value: 'oblique', label: '更斜' },
]

export const BoxShadowMapping = [
    { value: '--shadow-none', label: '无阴影' },
    { value: '--shadow-1-down', label: '一级阴影' },
    { value: '--shadow-2-down', label: '二级阴影' },
    { value: '--shadow-3-down', label: '三级阴影' },
]

export const OptionsNavMapping = [
    { value: 1, label: '切换首页', icon: <DesktopOutlined /> },
    { value: 2, label: '站内通知', icon: <ShakeOutlined /> },
    { value: 3, label: '帮助信息', icon: <QuestionOutlined /> },
    { value: 4, label: '智能客服', icon: <CustomerServiceOutlined /> },
    { value: 5, label: '工作计划', icon: <FieldTimeOutlined /> },
    { value: 6, label: '工作台', icon: <FundProjectionScreenOutlined /> },
    { value: 7, label: '锁屏', icon: <LockOutlined /> },
    { value: 8, label: '退出登录', icon: <LogoutOutlined style={{ color: 'red' }} /> },
    { value: 9, label: '微信绑定', icon: <WechatOutlined style={{ color: '#2bdc70' }} /> },
    { value: 10, label: '临时图表', icon: <DotChartOutlined /> },
    { value: 11, label: '修改密码', icon: <UserOutlined /> },
    { value: 12, label: '微信公众号', icon: ICONMapping['weixingongzhonghao'] },

]

export const UserDropdownNavMapping = [
    { value: 'SetSystem', label: '系统设置' },
    { value: 'SetUserInfo', label: '用户设置' },
]

export const IsHiddenMapping = [
    { value: true, label: '显示' },
    { value: false, label: '隐藏' },
]

export const IsYeasMapping = [
    { value: true, label: '是' },
    { value: false, label: '否' },
]
export const IsYeasNumber = [
    { value: 1, label: '是' },
    { value: 0, label: '否' },
]

export const IsAllowMapping = [
    { value: true, label: '允许' },
    { value: false, label: '禁止' },
]

export const IsEnableMapping = [
    { value: true, label: '启用' },
    { value: false, label: '禁用' },
]

export const IsPassThroughMapping = [
    { value: 2, label: '不通过' },
    { value: 1, label: '审核通过' },
]

// export const IsSubmit = [
//     { value: 2, label: '不通过' },
//     { value: 1, label: '审核通过' },
// ]


export const BorderTypeMapping = [
    { value: 'solid', label: '实现' },
    { value: 'dashed', label: '虚线' },
]

export const SelectionMethodMapping = [
    { value: 'none', label: '禁选' },
    { value: 'single', label: '单选' },
    { value: 'multiple', label: '多选' },
]

export const SummaryTypeMapping = [
    { value: 'sum', label: '合计' },
    { value: 'min', label: '最小' },
    { value: 'max', label: '最大' },
    { value: 'avg', label: '平均' },
    { value: 'count', label: '数量' },
]

export const AlignmentMapping = [
    { value: 'left', label: '左' },
    { value: 'center', label: '中' },
    { value: 'right', label: '右' },
]

export const AddedTypeMapping = [
    { value: 'form', label: '表单' },
    { value: 'table', label: '列表' },
    { value: 'excel', label: 'Excel' },
    { value: 'file', label: '附件' },
]



// todo 菜单字段设置
// ** 表格类型
export const DEVTypeMapping = [
    { value: 'data', label: '数据表格' },
    { value: 'multilayer', label: '多层列头' },
    { value: 'tree', label: '树形表格' },
    { value: 'olap', label: '统计表格(退出切换)' },
]
// ** 列宽状态
export const DEVcolumnResizingMode = [
    { value: 'nextColumn', label: '总宽度不会更改' },
    { value: 'widget', label: '其他列保持宽度' },
]
// ** 筛选方式
export const DEVfilterRowApplyFilter = [
    { value: 'none', label: '自动搜索' },
    { value: 'onClick', label: '确认搜索' },
]
// ** 选中方式
export const DEVselectionSelectAllMode = [
    { value: 'allPages', label: '所有数据' },
    { value: 'page', label: '当前页面' },
]
// ** 选择方式
export const DEVselectionShowCheckBoxesMode = [
    { value: 'none', label: '不可选' },
    { value: 'always', label: '多选框' },
    { value: 'onClick', label: '点击行' },
    { value: 'onLongTap', label: '长按行' },
]
// ** 列选择器方式
export const DEVcolumnChooserMode = [
    { value: 'select', label: '选择' },
    { value: 'dragAndDrop', label: '拖拽' },
]
// ** 分组展开方式
export const DEVgroupingExpandMode = [
    { value: 'rowClick', label: '点击行' },
    { value: 'buttonClick', label: '点击按钮' },
]

export const SetfieldsMapType = [
    { label: '数据映射', value: 'DataMapping' },
    { label: '接口映射', value: 'ApiMapping' },
]
export const DEVRowHeaderLayoutMapping = [
    { value: 'standard', label: '布局在父项的右侧显示子项' },
    { value: 'tree', label: '更密集地将项目显示为分层结构' },
]

export const DEVShowTotalsPrior = [
    { label: '上', value: 'row' },
    { label: '下', value: 'column' },
    { label: '前', value: 'both' },
    { label: '后', value: 'none' },
]

export const DEVDataFieldArea = [
    { label: '行', value: 'row' },
    { label: '列', value: 'column' },
]

export const DEVFieldChooserLayout = [
    { label: '默认布局', value: 0 },
    { label: '默认一', value: 1 },
    { label: '默认二', value: 2 },
]

export const DEVApplyChangesMode = [
    { label: '即刻', value: 'instantly' },
    { label: '按需', value: 'onDemand' },
]

// Todo 不同数据类型的映射
export const ContentTypeMapping = [
    'image/png',
    'image/jpeg',
    'image/gif',
    'video/mp4',
    'application/pdf',
    'text/plain',
    'application/vnd.ms-excel',
    'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
    'application/vnd.ms-word',
    'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
]



